<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>

	</head>
	
	<body>	
	<h6><kbd> {$photosort['id']?'修改':'添加'}相册  </kbd></h6>

			<form action="{:U(MODULE_NAME.'/Photos/createHandle')}" class="has-success alert alert-info" method="post">
				<input type="hidden" name="id" value="{$photosort.id}">
				<label for="title" >相册名称</label>
				<input type="text" name="name" value="{$photosort.name}" required class="form-control" placeholder="请输入相册名称" />
				<label for="href" >相册描述</label>
				<input type="text" name="description" class="form-control"   value="{$photosort.description}"  placeholder="请输入相册描述" />
				<label for="orders" >序号（优先级）</label>
				<input type="number" name="number" class="form-control" value="{$photosort.number|default=1}" />
				<label for="ishide" >其他人是否可见</label>	<br />
				<eq name="photosort['visible']" value="n">
					<input type="checkbox" name="visible" data-on-text="是"  value="y"  data-off-text="否"  data-toggle="switch" data-on-color="success" data-off-color="warning" />
					<else />
					<input type="checkbox" name="visible" data-on-text="否"  value="n" data-off-text="是"  data-toggle="switch" data-on-color="success" data-off-color="warning" />
				</eq>
					<br />	<br />
					<input type="submit" class="btn btn-sm btn-danger" value="{$photosort['id']?'修 改':'添 加'}" />
					<input type="submit" class="btn btn-sm btn-info" formnovalidate formaction="{:U('Photos/index')}" value="返 回" />
			</form>
			
			
	</body>		

</html>
